$(function(){
	//免费预约量尺
	$("body").delegate("#freeCustom","click",function(){
		var data = {};
		data.name = $("form #name").val().trim();
		data.phone = $("form #phone").val().trim();
		data.province = $("form #province").val().trim();
		data.city = $("form #city").val().trim();
		
		if(data.name==''||data.phone==''){
			alert('请填写姓名和手机号码！')
			return ;
		}
		
		$.ajax({
			url:"/"+Udwin.appName+"/order/addOrder",
			contentType: "application/json; charset=utf-8",
			method:"POST",
			dataType: "json",
			data:JSON.stringify(data),
			success:function(data){
				console.log(data);
			}
		})
	})
})